export default [
  {
    path: "/",
    name: "home",
    component: () => import(/* webpackChunkName: "Layout" */ "@/layout/index.vue"),
    meta: {
      title: "home",
      icon: "Eleme",
    },
    children: [
      // {
      //   path: "/welcome",
      //   name: "welcome",
      //   component: () => import(/* webpackChunkName: "Welcome" */ "@/views/welcome/index"),
      //   meta: {
      //     title: "首页",
      //     locale: "welcome",
      //     icon: "Eleme",
      //   },
      // },
      {
        path: "/chatStudio",
        name: "chatStudio",
        component: () => import(/* webpackChunkName: "ChatStudio" */ "@/views/chatStudio/index"),
        meta: {
          title: "在线客服",
          locale: "chatStudio",
          icon: "menu-kefu",
          keep: true,
        },
      },
      {
        path: "/smartRobot",
        name: "smartRobot",
        component: () => import(/* webpackChunkName: "SmartRobot" */ "@/views/smartRobot/index"),
        meta: {
          title: "智能机器人",
          locale: "smartRobot",
          icon: "menu-robot",
          keep: true,
        },
      },
      {
        path: "/accessModule",
        name: "accessModule",
        meta: {
          title: "接入模块",
          locale: "accessModule",
          icon: "link",
        },
        children: [
          {
            path: "/accessModule/chatLink",
            name: "ChatLink",
            component: () =>
              import(/* webpackChunkName: "ChatLink" */ "@/views/accessModule/chatLink/index"),
            meta: {
              title: "聊天链接",
              locale: "chatLink",
              icon: "Link",
            },
          },
          // {
          //   path: "/accessModule/webPlugIn",
          //   name: "WebPlugIn",
          //   component: () =>
          //     import(/* webpackChunkName: "WebPlugIn" */ "@/views/accessModule/webPlugIn/index"),
          //   meta: {
          //     title: "网页插件",
          //     locale: "webPlugIn",
          //     icon: "Link",
          //   },
          // },
          {
            path: "/accessModule/WeChatApplet",
            name: "WeChatApplet",
            component: () =>
              import(
                /* webpackChunkName: "WeChatApplet" */ "@/views/accessModule/weChatApplet/index"
              ),
            meta: {
              title: "微信小程序",
              locale: "weChatApplet",
              icon: "Link",
            },
          },
          // {
          //   path: "/accessModule/WeChatCustomerService",
          //   name: "weChatCustomerService",
          //   component: () =>
          //     import(
          //       /* webpackChunkName: "WeChatCustomerService" */ "@/views/accessModule/weChatCustomerService/index"
          //     ),
          //   meta: {
          //     title: "微信客服",
          //     locale: "weChatCustomerService",
          //     icon: "Link",
          //   },
          // },
          {
            path: "/accessModule/wechatPublic",
            name: "wechatPublic",
            component: () =>
              import(
                /* webpackChunkName: "wechatPublic" */ "@/views/accessModule/wechatPublic/index"
              ),
            meta: {
              title: "微信公众号",
              locale: "wechatPublic",
              icon: "Link",
            },
          },
        ],
      },
      {
        path: "/system",
        name: "system",
        meta: {
          title: "通用设置",
          locale: "system",
          icon: "menu-setting",
        },
        children: [
          {
            path: "/system/team",
            name: "team",
            component: () => import(/* webpackChunkName: "Team" */ "@/views/system/team/index"),
            meta: {
              title: "团队管理",
              locale: "team",
              icon: "More",
            },
          },
          {
            path: "/system/quicklyResponse",
            name: "quicklyResponse",
            component: () =>
              import(
                /* webpackChunkName: "QuicklyResponse" */ "@/views/system/quicklyResponse/index"
              ),
            meta: {
              title: "快捷回复",
              locale: "quicklyResponse",
              icon: "User",
            },
          },
        ],
      },

      // {
      //   path: "/assembly",
      //   name: "assembly",
      //   meta: {
      //     title: '组件',
      //     locale: "assembly",
      //     icon: "Menu",
      //   },
      //   children: [
      //     {
      //       path: "/assembly/jigsaw",
      //       name: "jigsaw",
      //       component: () =>
      //         import(/* webpackChunkName: "Jigsaw" */ "@/views/assembly/Jigsaw/index"),
      //       meta: {
      //         title: '拼图游戏',
      //         locale: "jigsaw",
      //         icon: "DishDot",
      //       },
      //     },
      //   ],
      // },
    ],
  },
  // {
  //   path: "/desktop",
  //   name: "desktop",
  //   component: () => import(/* webpackChunkName: "Desktop" */ "@/views/desktop/index"),
  //   meta: {
  //     title: "",
  //     locale: "",
  //     icon: "",
  //   },
  // },
];
